from django.db import models


class DraggableItem(models.Model):
  x = models.IntegerField()
  y = models.IntegerField()
  contents = models.TextField()

  def __unicode__(self):
    return self.contents

  class Admin:
    pass

class DraggableArea(models.Model):
  image = models.ImageField(upload_to="images/%Y/%m/%d", height_field="height",width_field="width", null=True, blank=True)
  height = models.IntegerField(null=True, blank=True)
  width = models.IntegerField(null=True, blank=True)
  item = models.ForeignKey(DraggableItem)
  class Admin:
    pass
